<?php /* Smarty version Smarty-3.1.8, created on 2012-11-07 16:55:19
         compiled from "E:\www\teraco/templates\teraco\productsub.temp.html" */ ?>
<?php /*%%SmartyHeaderCode:20172509a9277add404-62489014%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7349334d6773b8dc7ece483d712031daf8a746d8' => 
    array (
      0 => 'E:\\www\\teraco/templates\\teraco\\productsub.temp.html',
      1 => 1351188613,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20172509a9277add404-62489014',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'objCategory' => 0,
    'arrSubCategory' => 0,
    'itemSubCategory' => 0,
    'product' => 0,
    'arrProduct' => 0,
    'itemProduct' => 0,
    'base_url' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_509a9277bab074_60143020',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_509a9277bab074_60143020')) {function content_509a9277bab074_60143020($_smarty_tpl) {?><?php if (!is_callable('smarty_function_l')) include 'E:\\www\\teraco\\libraries\\plugins\\function.l.php';
?><?php if (!empty($_smarty_tpl->tpl_vars['objCategory']->value)){?>
    <h4><?php echo $_smarty_tpl->tpl_vars['objCategory']->value->getFieldLang('name');?>
</h4>
    <?php echo $_smarty_tpl->tpl_vars['objCategory']->value->getFieldLang('details');?>

    <?php if (!empty($_smarty_tpl->tpl_vars['arrSubCategory']->value)){?>
    <?php  $_smarty_tpl->tpl_vars['itemSubCategory'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['itemSubCategory']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arrSubCategory']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['itemSubCategory']->key => $_smarty_tpl->tpl_vars['itemSubCategory']->value){
$_smarty_tpl->tpl_vars['itemSubCategory']->_loop = true;
?>
    <ul class="menu collapsible">
        <!--<li class="expand">-->
        <li class="product_group">
            <a href="#" id="a_pdtGrp"><strong><?php echo $_smarty_tpl->tpl_vars['itemSubCategory']->value->getFieldLang('name');?>
</strong></a>
            <div name="divacitem" class="acitem" style="display:none;">
                <ul class="menu collapsible">
                    <div class="productwrapper">
<!--
                        <div class="productlogo">
                            <img src="http://terraco.com/images/19247113561934153915_20120119_flexitex-1.jpg" height="181" width="198" />
                        </div>
-->
                        <?php echo $_smarty_tpl->tpl_vars['itemSubCategory']->value->getFieldLang('details');?>

                        <?php $_smarty_tpl->tpl_vars['arrProduct'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getObjectsFromCId(1,$_smarty_tpl->tpl_vars['itemSubCategory']->value->getField('id')), null, 0);?>
                        <?php if (!empty($_smarty_tpl->tpl_vars['arrProduct']->value)){?>
                        <li id="lipdtInfo">
                            <a href="#"><?php echo smarty_function_l(array('s'=>'Click here for Product Info'),$_smarty_tpl);?>
</a>
                            <div class="acitem" name="spdtInfo" style="display:none;">
                                <table class="producttbl" border="0" cellpadding="0" cellspacing="0" width="">
                                    <tbody>
                                        <tr>
                                            <td align="left" width="114">
                                                <strong><?php echo smarty_function_l(array('s'=>'Product Code'),$_smarty_tpl);?>
</strong>
                                            </td>
                                            <td align="left" width="68">
                                                <strong><?php echo smarty_function_l(array('s'=>'Colour'),$_smarty_tpl);?>
</strong>
                                            </td>
                                            <td align="left" width="64">
                                                <strong><?php echo smarty_function_l(array('s'=>'td'),$_smarty_tpl);?>
</strong>
                                            </td>
                                            <td align="left" width="64">
                                                <strong><?php echo smarty_function_l(array('s'=>'msds'),$_smarty_tpl);?>
</strong>
                                            </td>
                                        </tr></tbody>
                                        <?php  $_smarty_tpl->tpl_vars['itemProduct'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['itemProduct']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arrProduct']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['itemProduct']->key => $_smarty_tpl->tpl_vars['itemProduct']->value){
$_smarty_tpl->tpl_vars['itemProduct']->_loop = true;
?>
                                        <tr>
                                            <td align="left"><?php echo $_smarty_tpl->tpl_vars['itemProduct']->value->getField('code');?>
</td>
                                            <td align="left"><?php echo $_smarty_tpl->tpl_vars['itemProduct']->value->getField('colour');?>
</td>
                                            <td align="left">
                                                <a name="a_sb" target="_blank" href="<?php if ($_smarty_tpl->tpl_vars['itemProduct']->value->getField('files1')){?><?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/upload/files/<?php echo $_smarty_tpl->tpl_vars['itemProduct']->value->getField('files1');?>
<?php }else{ ?>#<?php }?>"><?php echo smarty_function_l(array('s'=>'Download'),$_smarty_tpl);?>
</a>
                                            </td>
                                            <td align="left">
                                                <a name="a_sb" target="_blank" href="<?php if ($_smarty_tpl->tpl_vars['itemProduct']->value->getField('files2')){?><?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/upload/files/<?php echo $_smarty_tpl->tpl_vars['itemProduct']->value->getField('files2');?>
<?php }else{ ?>#<?php }?>"><?php echo smarty_function_l(array('s'=>'Download'),$_smarty_tpl);?>
</a>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                    </tbody>
                                </table>
                            </div>
                        </li>
                        <?php }?>
                    </div>
                </ul>
            </div>
        </li>
    </ul>
    <?php } ?>
    <?php }?>
<?php }?><?php }} ?>